package com.logistics.pick.entity.domain;

import lombok.Data;
import java.util.List;

@Data
public class PickDetailInvBill {

    private String erpInvBillCode;
    private String erpInvBillType;
    private Integer  priority;
    private String wcCode;
    private String wcName;
    private String deptCode;
    private String deptName;
    private String endLocation;
    private String endLocationName;
    private String locationArea;
    private String lackMaterialStatus;
    private String pick;
    private String itemSeqNo;
    private String itemCode;
    private String itemOpNo;
    private String itemName;
    private String itemUnit;
    private String itemQty;
    private String itemWorkCode;

    private String container;

    private List<String> containers;


    public static PickDetailInvBill build(String container){
        PickDetailInvBill pickDetailInvBill = new PickDetailInvBill();
        pickDetailInvBill.setContainer(container);
        return pickDetailInvBill;
    }

    public static PickDetailInvBill build(List<String> containers){
        PickDetailInvBill pickDetailInvBill = new PickDetailInvBill();
        pickDetailInvBill.setContainers(containers);
        return pickDetailInvBill;
    }

    public static PickDetailInvBill build(List<String> containers, String pick){
        PickDetailInvBill pickDetailInvBill = new PickDetailInvBill();
        pickDetailInvBill.setContainers(containers);
        pickDetailInvBill.setPick(pick);
        return pickDetailInvBill;
    }

    public static PickDetailInvBill build(Integer pick){
        PickDetailInvBill pickDetailInvBill = new PickDetailInvBill();
        pickDetailInvBill.setPick(pick.toString());
        return pickDetailInvBill;
    }

    public static PickDetailInvBill build(Integer pick, String container){
        PickDetailInvBill pickDetailInvBill = new PickDetailInvBill();
        pickDetailInvBill.setPick(pick.toString());
        pickDetailInvBill.setContainer(container);
        return pickDetailInvBill;
    }
}
